package com.smmisia.shop.response;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.smmisia.shop.enums.TicketOrderEnum;
import com.smmisia.shop.response.dto.TicketDTO;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class TicketOrderResponse {

    /**
     * 主键
     */
    private Integer id;

    /**
     * 订单id
     */
    private Integer orderId;

    /**
     * 票id
     */
    private Integer ticketId;

    /**
     * 票信息
     */
    private TicketDTO ticketInfo;

    /**
     * 0未支付,1已支付，2已过期
     */
    private TicketOrderEnum status;

    /**
     * 订单价格
     */
    private BigDecimal price;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;
}
